import os

import pytest
from log import Logg
from log import send_mail

if __name__ == '__main__':
    Logg()
    pytest.main(["-s","testcase.py",'--alluredir=./xiaoma','--clean-alluredir'])
    os.system('allure generate ./xiaoma -o ./mqy --clean')
    send_mail(['log.txt','./mqy/index.html'])